package org.kk.sentinel.handler;

import com.kk.model.result.GlobalResult;
import com.kk.model.result.User;

/**
 * the type of springcloud-alibaba
 *
 * <p>
 * .
 *
 * @author 铁甲小宝
 * @date 2023-02-11
 */

public class CustomFallbackHandler {
    public static GlobalResult fallback(int p1, Throwable e){
        return new GlobalResult("400", "FAILED", new User("兜底异常fallback方法，" + e.getMessage(), 209));
    }
}
